package com.ebt.m.users;

import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.ebt.m.R;
import com.ebt.m.commons.buscomponent.listview.IView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class CardHonourAddView extends IView {


    @BindView(R.id.action_add)
    RelativeLayout actionAdd;
    @BindView(R.id.item_root)
    LinearLayout itemRoot;

    public CardHonourAddView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        inflate(context, R.layout.layout_cardhonour_add, this);
        ButterKnife.bind(this);
    }

    public CardHonourAddView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public CardHonourAddView(Context context) {
        this(context, null);
    }

    @Override
    public void update(Object... obj) {

    }


    @OnClick(R.id.action_add)
    public void onViewClicked() {
        Intent intent = new Intent(getContext(), CardHonourEditActivity.class);
        getContext().startActivity(intent);
    }
}
